package com.hzp.micromall.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzp.micromall.admin.dto.UmsRoleDto;
import com.hzp.micromall.admin.entity.UmsAdminRoleRelation;
import com.hzp.micromall.admin.entity.UmsRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author houzipeng
 * @Date 2022/2/16 23:29
 * @Version 1.0
 * 自定义后台用户与角色管理Dao
 */
@Mapper
public interface UmsAdminRoleRelationDao extends BaseMapper<UmsAdminRoleRelation> {
    /**
     * 获取用于所有角色
     */
    List<UmsRole> getRoleList(@Param("adminId") Long adminId);
}
